﻿import Types from '../actionTypes';
import {
  getHistoryPurchasePrice
} from '../../api';

const GET_HISTORY_PURCHASE_LIST = (page, invcode_stock, page_size) => {
  return new Promise((resolve, reject) => {
    getHistoryPurchasePrice(page, invcode_stock, page_size).then(res => {
      resolve({
        type: Types.GET_HISTORY_PURCHASE_LIST,
        data: res
      });
    }).catch(err => {
      console.log(err);
    });
  });
};


export default {
  GET_HISTORY_PURCHASE_LIST
};
